<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
    .box {
        width: 300px;
        height: 300px;
        background-color: red;
        transform: rotate(45deg) scaleX(0.5); /* 先压缩，在旋转 */
        /* margin: 100px auto;
        transition: all 1s;
        transform-origin: right bottom; */
    }
    .box:hover {
        transform: skew(0deg, 30deg);
    }
    </style>
</head>
<body>
    <div class="box"></div>
</body>
</html>